<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
 <input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >

<div class="t_bar">单位基本情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td width="25%" align="right" nowrap>单位名称：</td>
		<td colspan="3">&nbsp;<span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">注册类型：</td>
		<td colspan="3">&nbsp;
		    <span name="organizations/organization[0]/nature_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /> 
		    </span>
		    <input type="hidden" name="organizations/organization[0]/nature_value"  value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />"/>
		</td>
	</tr>
	
	<tr>
		<td align="right">单位隶属：</td>
		<td colspan="3">&nbsp;
		    <span name="organizations/organization[0]/subjection_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/subjection_name" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td  align="right">通讯地址：</td>
		<td  colspan="3">&nbsp;
		<span name="organizations/organization[0]/address" ><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" /></span>
		</td>
	</tr>
	<tr>
		<td  align="right" style="width: 30">邮政编码：</td>
		<td  >&nbsp;
		<span name="organizations/organization[0]/zip_code"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/zip_code" /></span>
		</td>
		<td  align="right" style="width: 15%;">单位负责人：</td>
		<td style="width: 25%">&nbsp;
		    <x:out select="$xmlData/data/organization_persons/person/cname" />
		</td>
	</tr>
	<tr>
		<td  align="right">电子邮箱：</td>
		<td  >&nbsp;
			<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/email" /></span>
		</td>
		<td  align="right">传真号码：</td>
		<td  >&nbsp;
			<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/fax" />
		</td>
	</tr>
	<tr>
		<td align="right">企业规模：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/org_scale_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_scale_name" />
		    </span>
		</td>
		<td align="right">高新技术企业：</td>
		<td>&nbsp;
		   <x:out select="$xmlData/data/organizations/high_tech_name" />
			     
		</td>
	</tr>
	<tr>
		<td align="right">职工人数：</td>
		<td colspan="3">&nbsp;
		    <span id="staff" name="organization_persons/people_count_total"> 
			    <x:out select="$xmlData/data/organization_persons/people_count_total"/>
		    </span>
		</td>
	</tr>
	<tr>	
		<td align="right">工程技术人员数：</td>
		<td colspan="3">&nbsp;
		    <x:out select="$xmlData/data/organizations/tech_number" />
		</td>
	</tr>
	<tr>
		<td align="right" nowrap>上年度末资产总额（万元）：</td>
		<td colspan="3">&nbsp;
			<x:out select="$xmlData/data/organization/finances/total_assets"/>
		</td>
	</tr>
	<tr>
		<td align="right" nowrap>近三年内有无产品列入国家重点新产品计划：</td>
		<td colspan="3">&nbsp;
			<x:out select="$xmlData/data/organizations/country_prj_name" /> 
		</td>
	</tr>
	<tr>
		<td align="right" nowrap>近三年内有无产品列入安徽省重点新产品计划：</td>
		<td colspan="3">&nbsp;
			<x:out select="$xmlData/data/organizations/province_prj_name" /> 
		</td>
	</tr>
</table>
<div class="t_bar">主要股东（按股权比例列出前二名）及所占股权比例</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="shareholders" cellspacing="1">
	<tr align="center" >
	         <th width="10%">序号</th>
				<th width="45%">姓名</th>
				<th width="45%">所占股权比例(%)</th>
			</tr>
			
	
	<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization_shareholders/shareholder" var="shareholder">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<c:set var="no"><x:out select="$shareholder/@sequence_no" /></c:set>
				<c:if test="${no!=null&&no!='' }">
	            <tr align="center">
	                <td align="center" nowrap="nowrap">
					    <span name="organization_shareholders/shareholder[${flag}${index}]@sequence_no"><x:out select="$shareholder/@sequence_no" /></span>
						</td>
					<td align="center" nowrap="nowrap">
					    <span name="organization_shareholders/shareholder[${flag}${index}]/cname"><x:out select="$shareholder/cname" /></span>
					</td>
					<td align="center" nowrap="nowrap">
						<span name="organization_shareholders/shareholder[${flag}${index}]/invest_percent"><x:out select="$shareholder/invest_percent" /></span>
					</td>
				</tr>
				</c:if>
				<c:set value="${index+1}" var="index" scope="page" />
	</x:forEach>
</table>
<div class="t_bar">列出主要三项产品</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="products" cellspacing="1">
	<tr align="center" >
	         <th width="10%">序号</th>
				<th width="22.5%">名称</th>
				<th width="22.5%">型号</th>
				<th width="22.5%">计划类别</th>
				<th width="22.5%">年度</th>
	</tr>
	<tr align="center">
		<td >
			<span name="products/product1/seq_no">1</span>
		</td>
		<td align="left">
			<x:out select="$xmlData/data/products/product1/name" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product1/model" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product1/plan1_name" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product1/year" />
		</td>
	</tr>
	<tr align="center">
		<td>
			<span name="products/product2/seq_no">2</span>
		</td>
		<td  align="left">
			<x:out select="$xmlData/data/products/product2/name" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product2/model" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product2/plan2_name" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product2/year" />
		</td>
	</tr>
	<tr align="center">
		<td>
			<span name="products/product3/seq_no">3</span>
		</td>
		<td  align="left">
			<x:out select="$xmlData/data/products/product3/name" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product3/model" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product3/plan3_name" />
		</td>
		<td>
			<x:out select="$xmlData/data/products/product3/year" />
		</td>
	</tr>
</table>
<c:set var="statYear"><x:out select="$xmlData/data/proposal/year" /></c:set>
<div class="t_bar">${statYear-1 }年度申报单位经济效益</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="shareholders" cellspacing="1">
	<tr align="center">
		<td>产值（万元）</td>
		<td>销售额（万元）</td>
		<td>利润（万元）</td>
		<td>创汇（万美元）</td>
		<td>上缴增值税（万元）</td>
	</tr>
	<tr align="center">
		<td>
			<x:out select="$xmlData/data/economic/yield" />
		</td>
		<td>
			<x:out select="$xmlData/data/economic/sell" />
		</td>
		<td>
			<x:out select="$xmlData/data/economic/profit" />
		</td>
		<td>
			<x:out select="$xmlData/data/economic/foreign" />
		</td>
		<td>
			<x:out select="$xmlData/data/economic/vat" />
		</td>
	</tr>
	<tr>
		<td colspan="5"><strong>简要说明</strong>：<br />
			<x:out select="$xmlData/data/proposal/economic/summary_hidden" escapeXml="false" />
		</td>
	</tr>
</table>



<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="table10">
<tr>
		<td    class="t_bar2" colspan="8">人员信息</td>
	</tr>
<tr>
		<td  align="right">项目联系人：</td>
		<td>
			<x:out select="$xmlData/data/proposal/contact_psn_cname" />
		</td>
		<td  align="right">联系电话：</td>
		<td>
			<x:out select="$xmlData/data/proposal/contact_psn_tel" /> 
		</td>
		<td align="right">联系手机：</td>
		<td>
			<x:out select="$xmlData/data/proposal/contact_psn_mobile" /> 
		</td>
		<td  align="right">电子邮箱：</td>
		<td>
			<x:out select="$xmlData/data/proposal/contact_psn_email" /> 
		</td>
		<%-- <td  align="right" style="width: 8%;">传真号码：</td>
		<td  style="width: 14%;">
			<x:out select="$xmlData/data/proposal/contact_psn_fax" /> 
		</td> --%>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/proposal/fzr_psnname" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/proposal/fzr_tel" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/proposal/fzr_mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td>
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/proposal/fzr_mail" /></span>
		</td>
	</tr> 
</table>


<script type="text/javascript">
$(document).ready(function(){  
	var myDate = new Date();
	var nowDate=myDate.getFullYear();    //获取完整的年份(4位,1970-????)
	$("#nowDate").text(nowDate);
});

$(function() {
		var staff = $("#staff").text();
		var research = $("#research").text();
		var degree = $("#degree").text();
		$("span[name$=proportion1]").text(formatVal((research/staff)*100)+"%");
		$("span[name$=proportion2]").text(formatVal((degree/staff)*100)+"%");
	});
	

</script>